<?
if($_COOKIE['fangtong_sub_site_py'])
{
	$domain = $_COOKIE['fangtong_sub_site_py'];
}
else
{}
	define('DOMAIN', isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : preg_replace("/([^:]*)[:0-9]*/i", "\\1", $_SERVER['HTTP_HOST']));
	$rootdemo='.5sf.com.cn';
	$domain=str_replace("http://","",DOMAIN);
	$domain=str_replace($rootdemo,"",$domain);

echo $domain;exit;
header("Location: http://".$domain.".5sf.com.cn/House");
?>